<#macro score limit top100=false>
    <div class="card">
        <div class="card-header">
            <img src="/static/snapshot/yuan3.png" alt="icon" style="width:24px;height:24px;vertical-align:middle;margin-right:6px;">
            积分榜
            <#if !top100>
                <span class="pull-right"><a href="/top100">Top100</a></span>
            </#if>
        </div>
        <table class="table">
            <#if top100>
                <tr>
                    <th>用户名</th>
                    <th>积分</th>
                </tr>
            </#if>
            <@tag_score limit=limit>
                <#list users as user>
                    <tr>
                        <td>
                            <img src="${user.avatar?if_exists?default('/static/snapshot/photo.png')}" alt="avatar" class="avatar" style="width:32px;height:32px;border-radius:50%;margin-right:8px;vertical-align:middle;">
                            <a href="/user/${user.username}">${user.username}</a>
                        </td>
                        <td>${user.score}</td>
                    </tr>
                </#list>
            </@tag_score>
        </table>
    </div>
</#macro>
